package com.zzw.thread;

public class ParameterTest extends Thread{

	private Parameter parameter;
	private Integer conut;
	
	public ParameterTest(Parameter parameter,Integer count){
		this.parameter = parameter;
		this.conut = count;
	}
	
	@Override
	public void run() {
		parameter.init(conut);
		System.out.println(parameter.get());
	}
	
	public static void main(String[] args) {
		Parameter parameter = new Parameter();
		for(int i = 0;i < 10;i++){
			new ParameterTest(parameter,i).start();
		}
		System.out.println(Thread.currentThread().getName());
	}
}
